$border: 1px solid #000000;
$color: #000000;

// 超出隐藏
%beyond-hiding {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.beyond-hiding {
  @extend %beyond-hiding !optional;
}
%basic-box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  font-size: 12px;
  color: $color;
}

%basic-size {
  font-size: 12px;
  color: $color;
}
.dialog-head {
  display: flex;
  align-items: center;
  height: 30px !important;
  .icon-print {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin-left: 5px;
    color: var(--el-menu-active-color);
    background-color: var(--el-menu-active-bg-color) !important;
    border-radius: 50%;
    .svg-icon {
      margin-right: 0 !important;
    }
  }
}
#print-box {
  color: $color;
  .h-1 {
    position: relative;
    display: flex;
    height: 70px;
    &-1 {
      position: absolute;
      top: 10px;
      left: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 60px;
      height: 69px;
      background: url("../../../../assets/images/logo2.png");
      background-size: cover;
      -webkit-print-color-adjust: exact;
    }
    &-2 {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      font-size: 20px;
      font-weight: bold;
      color: $color;
    }
  }
  .h-2 {
    height: 40px;
    font-size: 18px;
    color: $color;
    text-align: center;
  }
  .h-3 {
    @extend %basic-box !optional;

    display: flex;
    justify-content: space-between;
    &-1 {
      display: flex;
      align-items: center;
    }
    &-2 {
      display: flex;
      align-items: center;
      justify-content: center;
      &-1 {
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
  }
  .center-box {
    box-sizing: border-box;
    border: $border;
    &-1 {
      display: flex;
      &-1 {
        box-sizing: border-box;
        flex: 85;
        .row-1 {
          box-sizing: border-box;
          display: flex;
          border-bottom: $border;
          > div {
            box-sizing: border-box;
            display: flex;
            border-right: $border;
          }
          > div:nth-last-child(1) {
            border-right: none;
          }
          &-1 {
            > div:nth-of-type(1) {
              box-sizing: border-box;
              border-right: $border;
            }
            > div {
              @extend %basic-box !optional;
            }
          }
        }
        .row-2 {
          display: flex;
          &-1 {
            box-sizing: border-box;
            display: flex;
            border-bottom: $border;
            > div {
              @extend %basic-box !optional;

              border-right: $border;
            }
          }
        }
      }
      .row-3 {
        border-bottom: $border;
        &-1 {
          display: flex;
          > div {
            @extend %basic-box !optional;

            border-right: $border;
          }
        }
      }
      .row-4 {
        display: flex;
        border-bottom: $border;
        &-1 {
          display: flex;
          > div {
            @extend %basic-box !optional;

            width: 100%;
            border-right: $border;
          }
        }
      }
      .row-5 {
        border-bottom: $border;
        &-1 {
          display: flex;
          > div {
            @extend %basic-box !optional;

            border-right: $border;
          }
        }
      }
      .row-6 {
        display: flex;
        border-bottom: $border;
        &-1 {
          display: flex;
          > div {
            @extend %basic-box !optional;

            border-right: $border;
          }
        }
      }
      &-2 {
        display: flex;
        flex: 14;
        align-items: center;
        justify-content: center;
        border-bottom: $border;
        border-left: $border;
      }
    }
    &-2 {
      display: flex;
      .family-title {
        @extend %basic-size !optional;

        display: flex;
        align-items: center;
        padding-left: 15px;
        border-right: $border;
        border-bottom: $border;
      }
      .family-info {
        display: flex;
        flex-direction: column;
        width: 100%;
        .row-1,
        .row-2 {
          display: flex;
          border-right: $border;
          border-bottom: $border;
          > div {
            @extend %beyond-hiding !optional;
            @extend %basic-box !optional;

            border-right: $border;
          }
        }
      }
    }
    &-3 {
      display: flex;
      flex-direction: column;
      .title {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        font-weight: bold;
        border-bottom: $border;
      }
      .info {
        display: flex;
        flex-direction: column;
        .row-1 {
          display: flex;
          border-bottom: $border;
          > div {
            @extend %beyond-hiding !optional;
            @extend %basic-box !optional;

            border-right: $border;
          }
        }
      }
    }
    &-4 {
      display: flex;
      border-bottom: $border;
      .title {
        display: flex;
        align-items: center;
        justify-content: center;
        border-right: $border;

        @extend %basic-size !optional;
      }
      .info {
        display: flex;
        padding: 0 10px;
      }
    }
    &-5 {
      display: flex;
      padding: 10px;

      @extend %basic-size !optional;

      border-bottom: $border;
    }
    &-6 {
      display: flex;
      height: 40px;
      border-bottom: $border;

      @extend %basic-size !optional;
      .title {
        display: flex;
        align-items: center;
        justify-content: center;
        border-right: $border;
      }
      .info {
        display: flex;
        align-items: center;
        padding: 0 10px;
      }
    }
    &-7 {
      @extend %basic-size !optional;

      display: flex;
      flex-direction: column;
      padding: 10px;
      border-bottom: $border;
      .row-2 {
        text-indent: 25px;
      }
      .row-3 {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        > div:nth-of-type(2) {
          width: 150px;
        }
      }
    }
    &-10 {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 30px;
      font-weight: bold;
      border-bottom: $border;
    }
    &-8 {
      padding: 10px;

      @extend %basic-size !optional;

      border-bottom: $border;
      .row-1,
      .row-2,
      .row-3 {
        height: 30px;
      }
      .row-1 {
        display: flex;
        align-items: center;
      }
      .row-2 {
        display: flex;
        width: 100%;
        .row-2-2 {
          display: flex;
          width: 50%;
          margin-left: 170px;
        }
      }
      .row-3 {
        display: flex;
        .row-3-3 {
          margin-left: 115px;
        }
      }
    }
    &-9 {
      @extend %basic-size !optional;

      display: flex;
      .title {
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        border-right: $border;
      }
      .info {
        .row-1 {
          height: 30px;
          border-bottom: $border;
        }
        .row-1,
        .row-2 {
          display: flex;
          > div {
            display: flex;
            flex: 1;
            align-items: center;
            justify-content: center;
            border-right: $border;
          }
        }
        .row-2 {
          height: 60px;
        }
      }
    }

    // 第二页
    &-20 {
      padding: 0 40px;
      .row-1 {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 50px;
        font-size: 16px;
        font-weight: bold;
      }
      .row-2 {
        margin-bottom: 20px;
        font-size: 14px;
        &-1 {
          margin-bottom: 23px;
          line-height: 20px;
        }
        .weight {
          font-weight: bold;
        }
      }
      .row-3 {
        display: flex;
        justify-content: space-between;
        &-1 {
          width: 80px;
          height: 120px;
        }
        &-2 {
          line-height: 22px;
        }
      }
      .row-4 {
        display: flex;
        align-items: center;
        &-1 {
          display: flex;
          flex: 1;
        }
        &-2 {
          display: flex;
          flex: 1;
          justify-content: flex-end;
        }
      }
    }
  }
}
.no-left-border {
  border-left: none !important;
}
.no-right-border {
  border-right: none !important;
}
.border-bottom {
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-bottom: $border;
}

@page {
  size: auto;
  margin: 6mm;
}

/* 宽度 */
@for $i from 0 through 100 {
  .f#{$i} {
    flex: #{$i} !important;
  }
}
.flex {
  display: flex;
  align-items: center;
}
